//
//  CityBtn.m
//  Project
//
//  Created by 冯东辉 on 2018/9/18.
//  Copyright © 2018年 FengDongHui. All rights reserved.
//

#import "CityBtn.h"

@implementation CityBtn

- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    CGFloat imageW = 15;
    CGFloat imageH = 12;
    CGFloat imageX = 0;
    CGFloat imageY = (contentRect.size.height-12)/2.0f;
    
    return CGRectMake(imageX, imageY, imageW, imageH);
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect {
    
    CGFloat titleW = contentRect.size.width-8-5-15;
    CGFloat titleH = contentRect.size.height;
    CGFloat titleX = 15+5;
    CGFloat titleY = 0;
    
    return CGRectMake(titleX, titleY, titleW, titleH);
}

@end
